home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / src / fsusage.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.4 KB  |  42 lines

  1. /* fsusage.h -- Declarations for filesystem space usage info.  */
  2.  
  3. /* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19.  
  20. #ifndef _GIT_FSUSAGE_H
  21. #define _GIT_FSUSAGE_H
  22.  
  23.  
  24. #include "stdc.h"
  25.  
  26.  
  27. /* Space usage statistics for a filesystem.  Blocks are 512-byte. */
  28. struct fs_usage
  29. {
  30.   long fsu_blocks;              /* Total blocks. */
  31.   long fsu_bfree;               /* Free blocks available to superuser. */
  32.   long fsu_bavail;              /* Free blocks available to non-superuser. */
  33.   long fsu_files;               /* Total file nodes. */
  34.   long fsu_ffree;               /* Free file nodes. */
  35. };
  36.  
  37.  
  38. extern int get_fs_usage PROTO ((char *path, struct fs_usage *fsp));
  39.  
  40.  
  41. #endif /* _GIT_FSUSAGE_H */
  42.